package com.lishuang.org.service;

import com.lishuang.basic.service.IBaseService;
import com.lishuang.org.domain.Shop;
import com.lishuang.org.domain.ShopAuditLog;
import com.lishuang.org.dto.ShopDto;

import javax.mail.MessagingException;
import java.util.List;

/**
 * 店铺服务接口
 */
public interface IShopService extends IBaseService<Shop> {

    /**
     * 店铺入驻
     * @param shop
     */
    void settlement(Shop shop);

    /**
     * 审核驳回
     * @param shopAuditLog
     * @return
     */
    void reject(ShopAuditLog shopAuditLog) throws MessagingException;

    /**
     * 审核通过
     * @param shopAuditLog
     * @return
     */
    void pass(ShopAuditLog shopAuditLog) throws MessagingException;;

    /**
     * 柱状图实现（获取每个店铺的状态）
     *
     * @param
     * @return
     */
    List<ShopDto> getCountByState();
}
